import request from '@/api/request'

//数据列表
export function index(params) {
	return request({ url: '/app/Procure/index',method: 'post',data: params})
}



//修改排序开关
export function updateExt(params) {
	return request({ url: '/app/Procure/updateExt',method: 'post',data: params})
}



//添加
export function add(params) {
	return request({ url: '/app/Procure/add',method: 'post',data: params})
}



//修改
export function update(params) {
	return request({ url: '/app/Procure/update',method: 'post',data: params})
}

export function getUpdateInfo(params) {
	return request({ url: '/app/Procure/getUpdateInfo',method: 'post',data: params})
}



//删除
export function del(params) {
	return request({ url: '/app/Procure/delete',method: 'post',data: params})
}



//查看详情
export function detail(params) {
	return request({ url: '/app/Procure/detail',method: 'post',data: params})
}


//反审
export function unAudit(params) {
	return request({ url: '/app/Procure/unAudit',method: 'post',data: params})
}

//审核
export function audit(params) {
	return request({ url: '/app/Procure/audit',method: 'post',data: params})
}

//保存入库详情
export function saveProcure(params) {
	return request({ url: '/app/Procure/save_procure',method: 'post',data: params})
}

//删除分录
export function deleteDetail(params) {
	return request({ url: '/app/Procure/delete_detail',method: 'post',data: params})
}


